<template>
    <h3>Parent</h3>
    <Child :title="message" demo="测试" :age="age" v-bind:names="names" :userInfo="userInfo" />
</template>

<script>
import Child from "./Child.vue";
export default {
    data() {
        return {
            message: "Parent的数据!",
            age: 20,
            names: ["小明", "小华", "小刚"],
            userInfo: {
                name: "小华",
                age: 20
            }
        }

    },
    components: {
        Child
    }
}
</script>